package com.tiancai.pojo.dto;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(name = "作品表Dto")
public class WorkDto {

    @Schema(description = "id")
    private Long id;

    /**
     * 标题
     */
    @Schema(description = "标题")
    private String title;


    /**
     * 大小
     */
    @Schema(description = "大小")
    private String size;

    /**
     * 作品分类id
     */
    @Schema(description = "作品分类id")
    private Long categoryId;

    /**
     * 0-开放 1-私有
     */
    @Schema(description = "0-开放 1-私有")
    private Integer status;


    /**
     * 描述
     */
    @Schema(description = "描述")
    private String description;


    /**
     * 图片信息
     */
    @Schema(description = "图片信息")
    private String img;
    /**
     * 源文件地址
     */
    @Schema(description = "源文件地址")
    private String sourceFile;

    /**
     * 价格 decimal(10,2)
     */
    @Schema(description = "价格 decimal(10,2)")
    private Double price;
    /**
     * 租赁价格
     */
    @Schema(description = "租赁价格")
    private Double rentPrice;
    /**
     * 货币类型
     */
    @Schema(description = "货币类型")
    private String currency;
    /**
     * 作品版权
     */
    @Schema(description = "作品版权")
    private Integer copyrightType;
}

